package com.hmkj.admin.controller.fqa;


import com.hmkj.admin.controller.BaseController;
import com.hmkj.common.baseMapper.GenericPo;
import com.hmkj.core.po.fqa.FqaCategory;
import com.hmkj.core.service.fqa.FqaCategoryService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
@RequestMapping(BaseController.BASE_URI)
public class FqaController extends BaseController {

    @Resource
    FqaCategoryService fqaCategoryService;
    /**
     * 常见问题列表
     *
     * @return
     */
    @RequestMapping("fqa/list")
    public String list(ModelMap modelMap) {
        modelMap.put("categoryList",fqaCategoryService.selectAll(new FqaCategory(t->{
            t.setDelFlag(FqaCategory.DELFLAG.NORMAL.code);
        })));
        return ok("fqa/list");
    }
}
